# -*- coding: utf-8 -*-
"""Sample model module."""

from sqlalchemy import *
from sqlalchemy.orm import mapper, relation
from sqlalchemy import Table, ForeignKey, Column
from sqlalchemy.types import Integer, Unicode
#from sqlalchemy.orm import relation, backref

from crv.model import DeclarativeBase, metadata, DBSession


class Role(DeclarativeBase):
    __tablename__ = 'roles'
    
    #{ Columns
    
    id=Column(Integer, primary_key=True)
    rolename=Column(Text, unique=True)
    data=Column(Text)
    
    #}
    def __init__(self, rolename, data):
        self.rolename = rolename
        self.data = data
        
